<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="fck"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发布文章</title>
<link rel="stylesheet" type="text/css" href="../css/style1.css" />
<link rel="stylesheet" type="text/css" href="../css/base.css" />
<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
<script type="text/javascript" src="../js/frame.js"></script>

<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>


<script type="text/javascript">
	window.onload = function() {
		document.getElementById("hide").style.display = "block";
		document.getElementById("sc").style.display = "none";
		document.getElementById("vip").style.display = 'none';
		document.getElementById("mb").style.display = 'none';
		document.getElementById("sys").style.display = 'none';
		document.getElementById("acquisition").style.display = "none";
	}
</script>

</head>

<body topmargin="8" background="../images/allbg.gif">
	<div id="container">
		<jsp:include page="../header.jsp"></jsp:include>
		<div style="float: left; width: 195px;">
			<jsp:include page="../leftnav.jsp"></jsp:include>
		</div>
		<div
			style="float: left; overflow-y: scroll; overflow-x: hidden; width: 785px; height: 550px;">

			<table width="90%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="60%" height="30"><img height=14
						src="../images/book1.gif" width="20" /> &nbsp; <a
						href="catalog_do.php?cid=0&channelid=1&dopost=listArchives"><u>文章列表</u>
					</a> &gt;&gt; 发布文章</td>

				</tr>
			</table>

			<table width="90%" border="0" align="center" cellpadding="0"
				cellspacing="0" id="head1">
				<tr>
					<td colspan="2">
						<table width="800" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td width="84" height="24" align="center"
									background="../images/itemnote1.gif">&nbsp;常规信息&nbsp;</td>
								<td><a href="javascript:Areder('acquisition')">
										●输入网址采集单个网页&gt;&gt;</a></td>
							</tr>
						</table></td>
				</tr>
			</table>

			<table width="90%" border="0" align="center" cellpadding="0"
				cellspacing="0" bgcolor="#FBFCE2" id="getone" style="">
				<form action="generalArticles.action" method="post">
					<input type="hidden" name="channelid" value="1" /> <input
						type="hidden" name="cid" value="0" />
					<tr>
						<td colspan="2">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr id="acquisition">
									<td width="150" height="31"><strong><a
											name="downurl"></a>&nbsp;采集单个网页-URL：</strong></td>
									<td width="320" align="center"><input name="geturl"
										type="text" id="geturl" style="width: 290px" value="" /></td>
									<td><input type="submit" class='nbt' name="Submit3"
										value="抓取" /> &nbsp;</td>
								</tr>
							</table></td>
					</tr>
			</table>




			<table width="90%" border="0" align="center" cellpadding="2"
				cellspacing="2" id="needset"
				style="border: 1px solid #cfcfcf; background: #ffffff;">
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;文章标题：</td>
								<td width='398'><input type="text" name="info.title"
									value="${info.title}" style="width: 150px" /></td>
								<td width="83">&nbsp;简略标题：</td>
								<td width="234"><input type="text" name="info.simplTitle"
									value="${info.simplTitle}" style="width: 150px" /></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;自定义属性：</td>
								<td width="715" align="left">头条[h] <input class='np'
									type='checkbox' name='flags' id='flagsc' value='1'>
									置顶[c] <input class='np' type='checkbox' name='flags'
									id='flagsa' value='2'> 推荐[a] <input class='np'
									type='checkbox' name='flags' id='flagsb' value='3'>
									加粗[b]</td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline" id="redirecturltr"
						style="display: none">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;跳转网址：</td>
								<td width="715"><input name="redirecturl" type="text"
									id="redirecturl" style="width: 300px" value="" /></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td width="400%" height="24" colspan="2" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;TAG标签：</td>
								<td width="457"><input name="tags" type="text" id="tags"
									value="" style="width: 250px" /> &nbsp; (','号分开，单个标签小于12字节)</td>
								<td width="45"></td>
								<td width="213"></td>
							</tr>
						</table></td>
				</tr>
				<tr id="pictable">
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;缩 略 图：</td>
								<td width="565">
									<table width="100%" border="0" cellspacing="1" cellpadding="1">
										<tr>
											<td height="30"><input name="picname" type="text"
												id="picname" value="${info.thumbnail }" style="width: 240px" />
												<input type="button" value="本地上传"
												style="width: 70px; cursor: pointer;" /> <iframe
													name='uplitpicfra' id='uplitpicfra' src='' width='200'
													height='200' style='display: none'></iframe> <span
												class="litpic_span"> <input name="litpic" type="file"
													id="litpic"
													onChange="SeePicNew(this, 'divpicview', 'uplitpicfra', 165, 'article_add.php');"
													size="1" class='np coolbg' /> </span></td>
										</tr>
									</table></td>
								<td width="150" align="center">
									<div id='divpicview' class='divpre'></div></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;文章来源：</td>
								<td width="245"><input type="text" name="info.source"
									style="width: 160px" value="${info.source }" size="16" />
									<td width="90">作 者：</td>
									<td width="380"><input type="text" name="info.author"
										style="width: 120px" value="${info.author}" /></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;文章主栏目：</td>
								<td width="715"><span id='typeidct'> <select
										name='aritcle.comment.id' id='typeid' style='width: 240px'>
											<option value='0'>请选择栏目...</option>
											<option value='4' class='option3'>─国外新闻</option>
									</select> </span></td>
							</tr>
						</table></td>
				</tr>
				<tr id='typeid2tr' style='display: none'>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;文章副栏目：</td>
								<td width="715"><span id='typeid2ct'></span> <input
									type='text' name='typeid2' id='typeid2' value=''
									style='width: 200px;' /> <img src='../images/menusearch2.gif'
									style='cursor: pointer;'
									onClick="ShowCatMap(event, this, 1, 'typeid2')" alt='选择副栏目'
									title='选择副栏目' /></td>
							</tr>
						</table></td>
				</tr>
				<tr>

				</tr>
				<tr>
					<td height="24" colspan="5" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="85">&nbsp;内容摘要： <br /> <textarea
										name="info.summary" rows="3" cols="80px"></textarea></td>

							</tr>
						</table></td>
				</tr>

				<tr>
					<td height="28" colspan="2" bgcolor="#F9FCEF" class="bline2">
						<div style='float: left; line-height: 28px;'>
							&nbsp; <strong>文章内容：</strong>
						</div></td>
				</tr>
				<tr>
					<td width="100%" height="24" colspan="2" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp;附加选项：</td>
								<td><input name="dellink" type="checkbox" class="np"
									id="dellink" value="1" /> 删除非站内链接 <a
									href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a>
									<input name="autolitpic" type="checkbox" class="np"
									id="autolitpic" value="1" checked="1" /> 提取第一个图片为缩略图 <input
									type='checkbox' name='needwatermark' value='1' class='np'
									checked /> 图片是否加水印</td>
							</tr>
						</table></td>
				</tr>
				<tr>
				</tr>
				<tr>
					<td width="100%" id="arcBody"><fck:editor
							inputName="info.content" instanceName="editorDefult"
							basePath="/fckeditor" value="" width="750px" height="250px"></fck:editor>

					</td>
					<td width="255" align="center" valign="top" bgcolor="#FFFFCC"
						id="mPic" style="display: none">
						<div class="multipic">
							<div
								style="display: block; background-color: #E5F1CF; height: 26px">
								<span id="spanButtonPlaceholder"></span>
							</div>
							<div id="divFileProgressContainer"></div>
							<div id="thumbnails"
								style="width: 254px; height: 535px; background-color: rgb(255, 255, 255); overflow-y: scroll;"></div>
						</div></td>
				</tr>
			</table>
			<table width="90%" border="0" align="center" cellpadding="2"
				cellspacing="2" id="adset"
				style="border-left: 1px solid #cfcfcf; border-right: 1px solid #cfcfcf; border-top: 1px solid #cfcfcf; background: #ffffff;">
				<tr>
					<td height="24" colspan="4" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="90">&nbsp;发布时间：</td>
								<td width="22px" />
								<td width="241"><input type="text" name="info.createTime"
									style="width: 120px" onClick="WdatePicker()" /></td>
								<td width="90px">发布选项：</td>
								<td width="379"><input name="ishtml" type="radio"
									class="np" value="1" checked="1" /> 生成HTML <input type="radio"
									name="ishtml" class="np" value="0" /> 仅动态浏览</td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="24" colspan="4" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="109">&nbsp;自定义文件名：</td>
								<td width="351"><input type="text" name="info.url"
									style="width: 100px" /> （不包括后缀名如.html等,可省略.）</td>

								<td width="90">浏览次数：</td>
								<td><input type='text' name='info.click' value='136'
									style='width: 100px;' /></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="24" colspan="4" class="bline">
						<table width="800" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="109">&nbsp;阅读权限: <select
									style="margin-left: 50px" name="info.permission">
										<option value="0">开放阅读</option>
										<option value="1">会员阅读</option>
								</select></td>
								<td width="351"></td>
							</tr>
						</table></td>
				</tr>
			</table>


			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				align="center" bgcolor="#F9FCEF"
				style="border: 1px solid #cfcfcf; border-top: none;">
				<tr height="35">

					<td width="100%"><input name="imageField" type="image"
						src="../images/button_save.gif" width="60" height="22" class="np"
						border="0" style="cursor: pointer; margin-left: 260px" /> <input
						name="" type="image" src="../images/button_reset.gif" width="60"
						height="22" class="np" border="0" style="cursor: pointer;" /></td>
				</tr>
			</table>

			</form>
		</div>
	</div>
</body>
</html>
